import { request } from '@/utils/requestUtil'

export function createAndDeleteCollection(data) {
	return request({
		method: 'POST',
		url: '/admin/collection/createAndDelete',
		data: data
	})
}

export function detailCollection(params) {
	return request({
		method: 'GET',
		url: '/admin/collection/detail/'+params
	})
}

export function clearCollection() {
	return request({
		method: 'POST',
		url: '/admin/collection/clear'
	})
}

export function fetchCollectionList(params) {
	return request({
		method: 'GET',
		url: '/admin/collection/list',
		params:params
	})
}